Repository navigation
pm-stack: surface decision-set Questions on Today/Needs-you + primary nav + standing-set refresh (#9354) - #9360
Merged
Merged
Conversation
…u, promote /decisions to primary nav, add standing-set refresh mode (#9354)
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes the code changes for #9354 (issue stays open for the parent-owned standing-set seeding + hourly-job update).
What changed
src/pages.ts— the decisions manifest entry moves fromnav: "dropdown"tonav: "primary", so "Decision sets" renders as a visible anchor in the Overview nav group on every page. The dashboard: clean up the page list (12 registered pages, overlaps to resolve) #1497 curation test's decision table is updated with the pm-stack: surface the decision-set question stack inside Today/Needs-you + nav — currently only a standalone /decisions page #9354 ruling recorded, like prior promotions.questionsSectionHtml(summaries, pageUrlFor)insrc/render.ts(open sets newest-first, open-set/open-question totals, per-set token link via the caller's URL builder, raised stamp in America/Chicago, "All decision sets" link, honest empty state,null= unavailable wording per the needsDrewCensusHtml pattern).src/server.tsadds aquestionsHtml()helper that reads the decision-set store live at request time. Wired into: Today shell (outside the#today-mainfragment div — the fragment deliberately does not carry it, documented in a code comment, so the live page never shows it twice), Today?full=1(viarenderToday/renderTodayBody, after Next-up), Needs-you full render (appended after sessions) and Needs-you shell (below the sessions fragment; attention fragments do not carry it).refreshDecisionSetinsrc/decisions.ts— for standing ledger-mirror sets. Existing set: preserves setId, token, createdAt and original source; replaces title/items (mapped exactly as raise maps them, via a shared helper); carriesresolutionover by qid, and versions/currentVersion when the question wording is identical. Absent set: behaves exactly likeraiseDecisionSet.POST /api/decision-setshonors a siblingrefresh: true: refresh of an existing set returns200 {created: false, refreshed: true}, sends no push, logs noset.created(it logs a set-leveleditevent, which the event log accepts without a questionRef); refresh of a missing set is the normal create path.scripts/submit-decision-set.tsgains--refresh, includesrefresh: truein the POST body, and passesrefreshedthrough on stdout; the header comment documents that refresh is for standing ledger-mirror sets only.Tests
New
test/questions-9354.test.ts(9 tests, each naming its oracle): refresh creates when absent; refresh preserves token/createdAt/source, replaces items, carries a resolution by qid, carries versions for identical wording, drops absent questions; changed wording starts a fresh v1 history; the Questions builder's open counts, token link, newest-first order, fully-resolved exclusion, empty state, and null-unavailable; nav contains an anchorhref="/decisions"and the manifest primary tier includes decisions.Baseline vs after (pristine origin/main worktree with deps installed, re-captured for this PR):
bunx tsc --noEmitoutput byte-identical to pristine (21error TSlines, all pre-existing, 0 in touched files).No per-set page tokens appear in this PR.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.